package com.hc.domain;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
import lombok.ToString;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * @author hecai
 * @date 2021/12/22 14:40
 */

/**
 * 订单
 */
@ApiModel(value = "com-hc-domain-Order")
@Getter
@Setter
@ToString
@Builder
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "tb_order")
public class Order implements Serializable {
    /**
     * 订单编号
     */
    @TableId(value = "id", type = IdType.ASSIGN_ID)
    @ApiModelProperty(value = "订单编号")
    private String id;

    /**
     * 订单总金额
     */
    @TableField(value = "total_money")
    @ApiModelProperty(value = "订单总金额")
    private BigDecimal totalMoney;

    /**
     * 用户编号
     */
    @TableField(value = "user_id")
    @ApiModelProperty(value = "用户编号")
    private Long userId;

    /**
     * 支付编号
     */
    @TableField(value = "pay_id")
    @ApiModelProperty(value = "支付编号")
    private Long payId;

    /**
     * 用户收件地址编号
     */
    @TableField(value = "receive_addr_id")
    @ApiModelProperty(value = "用户收件地址编号")
    private Long receiveAddrId;

    /**
     * 产品描述相符，5星
     */
    @TableField(value = "`des_identical`")
    @ApiModelProperty(value = "产品描述相符，5星")
    private Integer desIdentical;
    /**
     * 物流态度，5星
     */
    @TableField(value = "`logistic_serve`")
    @ApiModelProperty(value = "物流态度，5星")
    private Integer logisticServe;
    /**
     * 服务态度，5星
     */
    @TableField(value = "`serve_attitude`")
    @ApiModelProperty(value = "服务态度，5星")
    private Integer serveAttitude;
    /**
     * 状态
     */
    @TableField(value = "`status`")
    @ApiModelProperty(value = "状态")
    private Integer status;

    /**
     * 创建时间
     */
    @TableField(value = "create_time", fill = FieldFill.INSERT)
    @ApiModelProperty(value = "创建时间")
    private LocalDateTime createTime;

    /**
     * 更新时间
     */
    @TableField(value = "update_time", fill = FieldFill.UPDATE)
    @ApiModelProperty(value = "更新时间")
    private LocalDateTime updateTime;

}